package com.veryGood.controller;

import com.veryGood.common.result.R;
import com.veryGood.domain.dto.ResetPasswordDTO;
import com.veryGood.domain.pojo.SalesDetail;
import com.veryGood.service.Impl.SaleManageServiceImpl;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 张清富
 * @version 1.0
 */
@Controller
@RequestMapping("/sys_sale")
public class SaleController {

    @Autowired
    private SaleManageServiceImpl service;

    //修改密码
    @RequestMapping(value = "/add", method = RequestMethod.POST)
    public R add(@RequestBody SalesDetail salesDetail) {
        return service.add(salesDetail);
    }

}
